import * as actionTypes from './actionTypes'

// 注册
export const register = (payload) => {
    return {
        payload,
        type: actionTypes.DO_REGISTER,
    }
}

// 登入
export const login = (payload) => {
    return {
        payload,
        type: actionTypes.DO_LOGIN,
    }
}

// 登出
export const logout = () => {
    return {
        type: actionTypes.DO_LOGOUT
    }
}